/** layuiAdmin.std-v1.4.0 LPPL License By https://www.layui.com/admin/ */
;
layui.define(function(e) {
    var i = (layui.$, layui.layer, layui.laytpl, layui.setter, layui.view, layui.admin);
    i.events.logout = function() {
    	layer.confirm('您确定要退出系统吗？', {
			  btn: ['确定','取消'] // 按钮
			}, function(){
				$.ajax({
					url : RS.webPath + "/admin/login/logout",
					type : "post",
					success : function(data) {
						layer.alert('成功退出,点击确定返回首页!', function() {
							window.location.href = RS.webPath+'/admin';
						});
					}
			});
			}, function(){
			  layer.closeAll();
			});
    },
    e("common", {})
});